Repository navigation
Conversation
unchihugo
left a comment
There was a problem hiding this comment.
Hi @Yasinnet0, thanks for looking to contribute. I wonder if there's a more native implementation than what we're doing here? It's quite a lot of code for what should be a simple patch/toggle.
Hi you were right i did overdone some parts, in new commit i removed constantly saving size and position and it just saves them upon window close |
|
I think it's done now |
unchihugo
left a comment
There was a problem hiding this comment.
Perfect. Thank you for the modifications!
Summary
Adds window size, position, and maximized state persistence to the Settings Window across app sessions.
Motivation
Previously, opening the Settings Window always reset its size to the default 900x700 and opened at the center of the screen, discarding any resizing or repositioning done by the user.
Closes #908
Type of Change
What Changed
SettingsWindowWidth,SettingsWindowHeight,SettingsWindowLeft,SettingsWindowTop, andSettingsWindowState.WindowStartupLocation.Manual.GetWorkAreaForBounds(...)helper usingMonitorUtilto calculate DIP-scaled work areas across multi-monitor setups.NaN).LocationChanged,SizeChanged, andStateChangedto track changes while inNormalstate.WindowState.Maximizedstate restoration while preserving normal restore bounds.RestoreBoundsare flushed inSettingsWindow_Closing.Additional Information
Checklist